<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/14
 * Time: 17:25
 */
$oua_uid              = $route->bodyParams['oua_uid'];                  //员工ID
$oua_year_month       = $route->bodyParams['oua_year_month'];          //年月
$oua_attendance_num   = $route->bodyParams['oua_attendance_num'];      //出勤几天
$oua_overtime_num     = $route->bodyParams['oua_overtime_num'];        //加班几次
$oua_change_num       = $route->bodyParams['oua_change_num'];          //调休几次
$oua_late_num         = $route->bodyParams['oua_late_num'];            //迟到几次
$oua_absence_num      = $route->bodyParams['oua_absence_num'];         //旷工几次
$oua_leave_num        = $route->bodyParams['oua_leave_num'];           //请假几次
$oua_oesid            = $route->bodyParams['oua_oesid'];               //机构id
$oua_week_overtime_num            = $route->bodyParams['oua_week_overtime_num'];               //周内加班的次数
$oua_weekend_overtime_num           = $route->bodyParams['oua_weekend_overtime_num'];               //周末加班次数
$oua_holiday_overtime_num           = $route->bodyParams['oua_holiday_overtime_num'];               //节假日加班次数


//写入数组
$insertArr = [
    'oua_uid'                => $oua_uid,
    'oua_year_month'        => $oua_year_month,
    'oua_attendance_num'   => $oua_attendance_num,
    'oua_overtime_num'     => $oua_overtime_num,
    'oua_change_num'       => $oua_change_num,
    'oua_late_num'         => $oua_late_num,
    'oua_absence_num'      => $oua_absence_num,
    'oua_leave_num'        => $oua_leave_num,
    'oua_oesid'        => $oua_oesid,
    'oua_week_overtime_num'        => $oua_week_overtime_num,
    'oua_weekend_overtime_num'        => $oua_weekend_overtime_num,
    'oua_holiday_overtime_num'        => $oua_holiday_overtime_num,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_user_attendance",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );